package ar.edu.unq.wannaplay.pages.project;

import ar.edu.unq.wannaplay.dtos.ProjectDTO;
import ar.edu.unq.wannaplay.pages.WPPage;
import ar.edu.unq.wannaplay.panels.project.SingleProjectViewPanel;

public class SingleProjectViewPage extends WPPage {

    private ProjectDTO modelObject;

    public SingleProjectViewPage(final ProjectDTO modelObject) {
        super("Project Details Page");
        this.modelObject = modelObject;
        this.initialize();
    }

    @Override
    protected void addMainContent() {
        this.add(new SingleProjectViewPanel("mainContent", modelObject));
    }

    public ProjectDTO getModelObject() {
        return modelObject;
    }

    public void setModelObject(final ProjectDTO modelObject) {
        this.modelObject = modelObject;
    }

}
